﻿using Century.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Century.Model
{
   
    public partial class UserProfile
    {
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }
        public int? TitleId { get; set; }
        [MaxLength(64)]
        public string FirstName { get; set; }
        [MaxLength(64)]
        public string MiddleName { get; set; }
        [MaxLength(64)]
        public string LastName { get; set; }
        [MaxLength(32)]
        [DataType(DataType.PhoneNumber)]
        public string CellPhone { get; set; }
        [MaxLength(32)]
        [DataType(DataType.PhoneNumber)]
        public string HomePhone { get; set; }
        [MaxLength(32)]
        [DataType(DataType.PhoneNumber)]
        public string WorkPhone { get; set; }
        [MaxLength(32)]
        [DataType(DataType.PhoneNumber)]
        public string OtherPhone { get; set; }
        [MaxLength(32)]
        [DataType(DataType.PhoneNumber)]
        public string Fax { get; set; }
        public string HomeAddress { get; set; }
        public string WorkAddress { get; set; }
        [DataType(DataType.Date)]
        public DateTime? DateOfBirth { get; set; }
        public GenderEnum? Gender { get; set; }
        [ForeignKey("Nationality")]
        public int? NationalityId { get; set; }
        //[ForeignKey("CountryOfResidence")]
        public int? CountryOfResidenceId { get; set; }

        [ForeignKey("TitleId")]
        public Title Title { get; set; }

        //[InverseProperty("UserProfilesByNationalities")]
        public Country Nationality { get; set; }

        //[InverseProperty("UserProfilesByCountryOfResidences")]
        //public Country CountryOfResidence { get; set; }

        public bool IsAdministrator { get; set; }
    }
}